.search-result-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Header Styles */
.search-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.search-header .date {
    color: #666;
    font-size: 16px;
}

/* Results Header Styles */
.results-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #555;
}

.results-count {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* Bus Card Styles */
.bus-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.bus-info {
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.bus-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.operator {
    color: #666;
    font-size: 14px;
}

.time {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.location {
    font-size: 14px;
    color: #666;
}

.duration {
    text-align: center;
    color: #666;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0a8f3c;
    font-weight: bold;
}

.fare {
    font-weight: bold;
    color: #0a8f3c;
}

.seats {
    color: #666;
}

.book-now {
    background: #0a8f3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.book-now:hover {
    background: #078033;
}

/* Tabs Styles */
.bus-tabs {
    display: flex;
    padding: 15px 20px;
    gap: 20px;
    background: #f8f8f8;
}

.tab {
    color: #666;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.tab:hover {
    color: #0a8f3c;
}

.tab.active {
    color: #0a8f3c;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0a8f3c;
}

/* Seat Selection Styles */
.seat-selection {
    background: white;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    display: none;
}

.seat-selection.active {
    display: block;
}

.seat-layout {
    max-width: 400px;
    margin: 0 auto 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.steering {
    text-align: right;
    margin-bottom: 20px;
}

.steering svg {
    width: 24px;
    height: 24px;
    color: #666;
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.seat-row {
    display: contents;
}

.seat {
    aspect-ratio: 1;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    background: white;
}

.seat:hover:not(.occupied) {
    border-color: #0a8f3c;
    color: #0a8f3c;
}

.seat.selected {
    background: #0a8f3c;
    border-color: #0a8f3c;
    color: white;
}

.seat.occupied {
    background: #e0e0e0;
    border-color: #ccc;
    cursor: not-allowed;
}

.seat.space {
    border: none;
    cursor: default;
}

.seat-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.seat-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.seat-type-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
}

.seat-type-indicator.selected {
    background: #0a8f3c;
    border-color: #0a8f3c;
}

.seat-type-indicator.occupied {
    background: #e0e0e0;
    border-color: #ccc;
}
 /* Fare Details Styles */
 .fare-details {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fare-details h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.fare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.fare-row:last-child {
    border-bottom: none;
}

.fare-label {
    color: #666;
}

.fare-value {
    font-weight: 500;
    color: #333;
}

.fare-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.fare-total .fare-label,
.fare-total .fare-value {
    font-weight: bold;
    color: #0a8f3c;
}

.tax-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

.process-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: #0a8f3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.process-button:hover {
    background: #078033;
}

@media (max-width: 1024px) {
    .results-header {
        display: none;
    }

    .bus-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bus-info > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .duration, .rating {
        justify-content: space-between;
    }

    .book-now {
        width: 100%;
    }

    .bus-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .seat-grid {
        gap: 5px;
    }

    .seat {
        font-size: 10px;
    }

    .seat-info {
        flex-direction: column;
        align-items: center;
    }
}